package com.class04.controller;

import com.class04.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/12/26 16:09
 */
@ResponseBody
@Controller
@RequestMapping("user")
public class UserController {
    @Autowired
    private User user;
    @GetMapping("show")
    public User show(){
        return user;
    }

}
